package com.sh_rw.label.common.parser;

import com.sh_rw.label.listener.ParserListener;

/**
 * Created by rw-duke on 2018/4/8.
 */

public class _ReplyParser extends Parser {

    public boolean isIntercept;
    @Override
    public void onLabelParser(byte[] data, ParserListener listener) {
        if ((data[13]&0xff) ==79 && (data[14]&0xff) == 75){

            listener.onSuccess();
            isIntercept = true;
        }else if ((data[13]&0xff) ==79 && (data[14]&0xff) == 75){
            listener.onFail();
            isIntercept = true;
        }else {
            isIntercept = false;
        }
    }

    @Override
    public boolean check(byte[] data) {
        return false;
    }

}
